package com.learn.jackson.annotation.jsonAlias;

import com.fasterxml.jackson.annotation.JsonAlias;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author HuangChao
 * @since 2025/6/8 10:31
 */
@AllArgsConstructor(staticName = "of")
@NoArgsConstructor
@Data
@EqualsAndHashCode
public class JsonAliasEntity {
    private Long id;
    @JsonAlias({"name1", "name2"})
    private String name;
}
